doctype html
html
  head
    title= title
    link(rel='stylesheet', href='/bootstrap/2.3.2/css/datepicker.css')
    link(rel='stylesheet', href='/bootstrap/2.3.2/css/bootstrap.min.css')
    link(rel='stylesheet', href='/jquery-validation/1.11.1/validate.css')
    link(rel='stylesheet', href='/jquery-qtip/jquery.qtip.min.css')
    link(rel='stylesheet', href='/stylesheets/style.css')
    script(type="text/javascript",src="/jquery/jquery-1.9.1.min.js")
    script(type="text/javascript",src="/jquery/jquery-ui-1.9.2.custom.min.js")
    script(type="text/javascript",src="/jquery-validation/1.11.1/jquery.validate.min.js")
    script(type="text/javascript",src="/jquery-validation/1.11.1/messages_bs_zh.js")
    script(type="text/javascript",src="/jquery-qtip/jquery.qtip.min.js")
    script(type="text/javascript",src="/bootstrap/2.3.2/js/bootstrap.min.js")
    script(type="text/javascript",src="/bootstrap/2.3.2/js/bootstrap-datepicker.js")
    script(type="text/javascript",src="/javascripts/default.js")
  body
    div(class="navbar")
      div(class="navbar-inner")
        a(class="brand",href="/")=locals.title
        ul(class="nav")
          - each nav in locals.nav.value
            li(class="dropdown")
              a(class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/lua")=nav.name
                - if (nav.value.length)
                  b(class="caret")
              - if (nav.value.length)
                ul(class="dropdown-menu" role="menu" aria-labelledby="dLabel")
                  - each c in nav.value
                    li(role="presentation")
                      - if (c.src.indexOf("http")==0)
                        a(id=c.src,href="javascript:doClick('"+c.src+"');")=c.name
                      - else
                        a(id=c.src,href="javascript:void(0);")
                          font.muted=c.name
            li(class="divider-vertical")
    block content
  script(type="text/javascript").
    function doClick(path) {
      $("#path").val(path);
    }
    